package work.timejay.user.service.books;

import work.timejay.bo.CopyCategoryItemBO;
import work.timejay.common.ApiPageEntity;
import work.timejay.common.SuperPage;
import work.timejay.user.dto.books.BooksCatalogueInfoDTO;
import work.timejay.user.dto.books.BooksCataloguePageDTO;
import work.timejay.user.entity.books.Books;
import work.timejay.user.vo.books.BooksCataloguePageVO;
import work.timejay.user.entity.books.BooksCatalogue;
import work.timejay.common.SuperService;

import java.util.List;

/**
 * <p>
 * 目录表 服务类
 * </p>
 *
 * @author 王文杰
 * @since 2023-12-11
 */
public interface BooksCatalogueService extends SuperService<BooksCatalogue> {


    void saveBatchInfo(List<CopyCategoryItemBO> boList,Long bookId);

    void isExistsToDeleteByBookId(Long bookId);

    /**
     * 章节分页
     * @param superPage
     * @return
     */
    ApiPageEntity<BooksCataloguePageVO> pageInfo(BooksCataloguePageDTO<BooksCatalogue> superPage);

    /**
     * 章节详情
     * @param dto
     * @return
     */
    BooksCatalogue getInfo(BooksCatalogueInfoDTO dto);

    /**
     * 内部接口获取所有待处理章节
     * @return
     */
    List<BooksCatalogue> findBooksCatalogueInfoList();

}
